<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script src="Stack.js"></script>
<script>
    var stack=new Stack();
    stack.push(20);
    stack.push(10);
    stack.push(100);
    stack.push(77);
    
    console.log(stack.tostring());
    stack.pop();
    stack.pop();
    console.log(stack.tostring());
    console.log(stack.peek());
    console.log(stack.isEmpty());
    console.log(stack.size());

</script>
</html>